package com.sg.business.model.dataset.work;

import com.sg.business.model.IModelConstants;
import com.sg.business.model.WorkDeliverableDefinition;
import com.sg.widgets.commons.dataset.MasterDetailDataSetFactory;

public class WorkDeliverableDefForWork extends MasterDetailDataSetFactory {

	public WorkDeliverableDefForWork() {
		super(IModelConstants.DB, IModelConstants.C_WORK_DELIEVERABLE_DEFINITION);
	}

	@Override
	protected String getDetailCollectionKey() {
		return WorkDeliverableDefinition.F_WORK_ID;
	}
	
	@Override
	protected Object getMasterValue() {
		return master.getValue(WorkDeliverableDefinition.F_WORK_ID);
	}

}
